PATHMac OS 8 and 9 Developer Documentation > Interapplication Communication > AppleScript for Scripters >

AppleScript Language Guide

   

Constants

Table A-2 lists constants defined by AppleScript. See Constants for additional information on constants.

As with all other identifiers, constants are not case sensitive. For example, false , False , and FALSE are all treated as the same constant.

Table A-2   Constants defined by AppleScript  

Identifier

Meaning

Attributes specified in Considering and Ignoring statements

application
responses
If ignored, AppleScript doesn't wait for responses from application commands before proceeding to the next statement in a script and ignores any results or errors returned. By default, AppleScript waits for application responses .
case If considered, AppleScript distinguishes uppercase letters from lowercase. By default, case is ignored.
current application Either the default target application or whatever application is currently set as a script's parent property.
diacriticals If ignored, AppleScript ignores diacritical marks in string comparisons. By default, diacriticals are considered.
expansion If ignored, AppleScript treats the characters æ, Æ, , and as single characters and thus not equal to the character pairs ae, AE, oe, and OE. By default, expansion is considered.
hyphens If ignored, AppleScript ignores hyphens in string comparisons By default, hyphens are considered.
punctuation If ignored, AppleScript ignores punctuation marks in string comparisons. By default, punctuation is considered.
white space If ignored, AppleScript ignores spaces, tab characters, and return characters in string comparisons. By default, white space is considered.

Text styles

all caps All caps
all lowercase All lowercase
bold Boldface
condensed Condensed
expanded Expanded
hidden Hidden
italic Italic
outline Outline
plain Plain text
shadow Shadow
small caps Small caps
strikethrough Strikethrough
subscript Subscript
superscript Superscript
underline Underline

Save options

ask Ask user whether to save modified object or objects.
no Don't save modified object or objects.
yes Save modified object or objects.

Boolean constants

false The Boolean false value.
true The Boolean true value.

Miscellaneous

current
application
Either the default target application or whatever application is currently set as a script's parent property.

Days

weekday Property of date (Monday through Sunday)
Monday, Mon Monday
Tuesday, Tue Tuesday
Wednesday, Wed Wednesday
Thursday, Thu Thursday
Friday, Fri Friday
Saturday, Sat Saturday
Sunday, Sun Sunday

Months

month Property of date (January through December)
January, Jan January
February, Feb February
March, Mar March
April, Apr April
May, May May
June, Jun June
July, Jul July
August, Aug August
September, Sep September
October, Oct October
November, Nov November
December, Dec December

Time

minutes 60 (seconds in a minute)
hours 60 * minutes (or 3600)
days 24 * hours (or 86,400)
weeks 7 * days (or 604,800)

© 1999 Apple Computer, Inc. – (Last Updated 21 May 99)